.audio-visualizer-container {
  min-height: calc(100vh - 200px);
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  /* 优化滚动体验 */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* 自定义滚动条样式 */
.audio-visualizer-container::-webkit-scrollbar {
  width: 8px;
}

.audio-visualizer-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.audio-visualizer-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.audio-visualizer-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 页面标题样式 */
.audio-visualizer-container .ant-typography-h2 {
  color: white !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 700 !important;
  margin-bottom: 24px !important;
}

.visualizer-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

.visualizer-canvas {
  display: block;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.control-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.control-panel .ant-card-head {
  background: rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.control-panel .ant-card-head-title {
  color: #1a1a1a;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.control-panel .ant-card-body {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.control-panel .ant-typography {
  color: #2c2c2c !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
}

.control-panel .ant-btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.control-panel .ant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.control-panel .ant-select {
  border-radius: 8px;
}

.control-panel .ant-select .ant-select-selector {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  color: #1a1a1a !important;
  font-weight: 500 !important;
}

.control-panel .ant-select .ant-select-selector:hover {
  border-color: rgba(102, 126, 234, 0.6) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

.audio-visualizer-container .ant-slider {
  margin: 12px 0 8px 0 !important;
  padding: 4px 0 !important;
}

.audio-visualizer-container .ant-slider-rail {
  background: rgba(255, 255, 255, 0.4) !important;
  height: 8px !important;
  border-radius: 4px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.audio-visualizer-container .ant-slider-track {
  background: linear-gradient(90deg, #667eea, #764ba2) !important;
  height: 8px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.audio-visualizer-container .ant-slider-handle {
  border: 3px solid #667eea !important;
  background: white !important;
  width: 24px !important;
  height: 24px !important;
  margin-top: -8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(102, 126, 234, 0.3) !important;
  border-radius: 50% !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.audio-visualizer-container .ant-slider-handle:hover {
  border-color: #764ba2 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 3px 8px rgba(118, 75, 162, 0.4) !important;
}

.audio-visualizer-container .ant-slider-handle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .audio-visualizer-container {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .audio-visualizer-container {
    padding: 10px;
    min-height: calc(100vh - 150px);
  }
  
  .visualizer-card {
    padding: 15px;
  }
  
  .control-panel .ant-row {
    flex-direction: column;
  }
  
  .control-panel .ant-col {
    width: 100% !important;
    margin-bottom: 16px;
  }
  
  /* 移动端设置面板优化 */
  .control-panel .ant-card-small .ant-row {
    flex-direction: column;
  }
  
  .control-panel .ant-card-small .ant-col {
    width: 100% !important;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .audio-visualizer-container {
    padding: 8px;
  }
  
  .visualizer-card {
    padding: 10px;
  }
  
  .audio-visualizer-container .ant-typography-h2 {
    font-size: 20px !important;
    margin-bottom: 16px !important;
  }
}

/* 动画效果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.visualizer-card:hover {
  animation: pulse 2s ease-in-out infinite;
}

.visualizer-canvas:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(102, 126, 234, 0.3);
}

/* 玻璃拟态效果增强 */
.control-panel .ant-card-small > .ant-card-head {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px);
}

.control-panel .ant-card-small > .ant-card-body {
  background: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
}

.control-panel .ant-card-small .ant-card-head-title {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9) !important;
}

/* 文件上传按钮样式 */
label[for="audio-upload"] {
  cursor: pointer;
}

label[for="audio-upload"] .ant-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  font-weight: 600;
}

label[for="audio-upload"] .ant-btn:hover {
  background: linear-gradient(135deg, #764ba2, #667eea);
  transform: translateY(-2px);
}

/* 下拉菜单选项样式优化 */
.ant-select-dropdown {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.ant-select-item {
  color: #1a1a1a !important;
  font-weight: 500 !important;
}

.ant-select-item-option-selected {
  background: rgba(102, 126, 234, 0.1) !important;
  color: #667eea !important;
  font-weight: 600 !important;
}

.ant-select-item:hover {
  background: rgba(102, 126, 234, 0.05) !important;
}

/* 当前文件名显示优化 */
.control-panel .ant-typography[class*="secondary"] {
  color: #4a4a4a !important;
  background: rgba(255, 255, 255, 0.3) !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}
